/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ordering.pojo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author hua
 */
@Entity
@Table(name = "pwd")
@NamedQueries({@NamedQuery(name = "UserManage.findAll", query = "SELECT u FROM UserManage u"), @NamedQuery(name = "UserManage.findByPk", query = "SELECT u FROM UserManage u WHERE u.pk = :pk"), @NamedQuery(name = "UserManage.findByUserid", query = "SELECT u FROM UserManage u WHERE u.userid = :userid"), @NamedQuery(name = "UserManage.findByPwd", query = "SELECT u FROM UserManage u WHERE u.pwd = :pwd"), @NamedQuery(name = "UserManage.findByPuis", query = "SELECT u FROM UserManage u WHERE u.puis = :puis"), @NamedQuery(name = "UserManage.findByDelmark", query = "SELECT u FROM UserManage u WHERE u.delmark = :delmark"), @NamedQuery(name = "UserManage.findByOther1", query = "SELECT u FROM UserManage u WHERE u.other1 = :other1"), @NamedQuery(name = "UserManage.findByOther2", query = "SELECT u FROM UserManage u WHERE u.other2 = :other2"), @NamedQuery(name = "UserManage.findByUserType", query = "SELECT u FROM UserManage u WHERE u.userType = :userType")})
public class UserManage implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "pk")
    private Long pk;
    @Column(name = "userid")
    private String userid;
    @Column(name = "pwd")
    private String pwd;
    @Column(name = "puis")
    private String puis;
    @Column(name = "delmark")
    private Boolean delmark;
    @Column(name = "other1")
    private String other1;
    @Column(name = "other2")
    private String other2;
    @Column(name = "userType")
    private Integer userType;

    public UserManage() {
    }

    public UserManage(Long pk) {
        this.pk = pk;
    }

    public Long getPk() {
        return pk;
    }

    public void setPk(Long pk) {
        this.pk = pk;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getPuis() {
        return puis;
    }

    public void setPuis(String puis) {
        this.puis = puis;
    }

    public Boolean getDelmark() {
        return delmark;
    }

    public void setDelmark(Boolean delmark) {
        this.delmark = delmark;
    }

    public String getOther1() {
        return other1;
    }

    public void setOther1(String other1) {
        this.other1 = other1;
    }

    public String getOther2() {
        return other2;
    }

    public void setOther2(String other2) {
        this.other2 = other2;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (pk != null ? pk.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof UserManage)) {
            return false;
        }
        UserManage other = (UserManage) object;
        if ((this.pk == null && other.pk != null) || (this.pk != null && !this.pk.equals(other.pk))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.ordering.pojo.UserManage[pk=" + pk + "]";
    }

}
